<template>
    <div class="container">
        <div class='u-title f-mtp10'>
            <h2>新增短剧</h2>
        </div>

        <div class='u-content mn flex flex-column flex-center'>
            <div class='item'>
                <label for="">短剧标题</label>
                <div class='item-right'>
                    <el-input v-model="phone" placeholder="手机号"></el-input>
                </div>
            </div>
            <div class='item'>
                <label for="">所属分类</label>
                <div class='item-right'>
                    <el-select class='f-w-full' v-model="departmentId" clearable placeholder="请选择">
                        <el-option
                        v-for="item in departmentList"
                        :key="item.id"
                        :label="item.departmentName"
                        :value="item.id">
                        </el-option>
                    </el-select>
                </div>
            </div>
            <div class='item'>
                <label for="">播放量</label>
                <div class='item-right'>
                    <el-input v-model="phone" placeholder="手机号"></el-input>
                </div>
            </div>
            <div class='item'>
                <label for="">播放量</label>
                <div class='item-right'>
                    <el-input v-model="phone" placeholder="手机号"></el-input>
                </div>
            </div>
            <div class='item'>
                <label for="">封面图片</label>
                <div class='item-right'>
                    
                </div>
            </div>
            <div class='item'>
                <label for="">上传视频</label>
                <div class='item-right'>
                    
                </div>
            </div>
        
            <div class='btn-box f-ptp20'>
                <el-button
                    class='f-w250 s-bg-green s-cfff'
                    @click="handleEdit(scope.$index, scope.row)">确定</el-button>
            </div>
        </div>
    </div>
</template>

<script>
export default {
  name: 'AddLawyer',
  data() {
    return {
      imageUrl: '',
      phone: '',
      password: ''
    }
  },
  methods: {
    handleAvatarSuccess(res, file) {
      this.imageUrl = URL.createObjectURL(file.raw);
    },
    beforeAvatarUpload(file) {
      const isJPG = file.type === 'image/jpeg';
      const isLt2M = file.size / 1024 / 1024 < 2;

      if (!isJPG) {
        this.$message.error('上传头像图片只能是 JPG 格式!');
      }
      if (!isLt2M) {
        this.$message.error('上传头像图片大小不能超过 2MB!');
      }
      return isJPG && isLt2M;
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.container{
  width: 560px;
  /* margin: 0 auto; */
}
.mn{
    padding: 30px 0 50px 0;
}
.item{
    display: flex;
    margin-bottom: 10px;
}
.item>label{
    display: inline-block;
    width: 80px;
    line-height: 40px;
    text-align: right;
    margin-right: 10px;
}
.item-right{
    width: 250px;
}
.btn-box{
    padding-left: 80px;
}
</style>
